package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.langyabang.config.*;
import com.yanqu.road.entity.activity.langyabang.data.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class LangYaBangBusiness {

    public static Map<String, Map<Integer, LangYaBangDeclareWarData>> getNoEndLangYaBangDeclareWarData(int activityId, int groupId){
        return DaoHelper.getLangYaBangDeclareWarDataDaoImpl().getNoEndLangYaBangDeclareWarData(activityId,groupId);
    }

    public static Map<String, Map<Integer, LangYaBangDeclareWarData>> getLangYaBangOverTimeDeclareWarData(int activityId,int groupId) {
        return DaoHelper.getLangYaBangDeclareWarDataDaoImpl().getLangYaBangOverTimeDeclareWarData(activityId,groupId);
    }

    public static boolean updateLangYaBangDeclareWarData(LangYaBangDeclareWarData data){
        return DaoHelper.getLangYaBangDeclareWarDataDaoImpl().update(data);
    }

    public static boolean addLangYaBangDeclareWarData(LangYaBangDeclareWarData data){
        return DaoHelper.getLangYaBangDeclareWarDataDaoImpl().add(data);
    }

    public static Map<Integer, LangYaCaseConfig> getLangYaCaseConfigMap(int activityId){
        return DaoHelper.getLangYaBangConfigDaoImpl().getLangYaCaseConfigMap(activityId);

    }

    public static Map<Integer,Map<Integer, LangYaCaseEventConfig>> getLangYaCaseEventConfigMap(int activityId){
        return DaoHelper.getLangYaBangConfigDaoImpl().getLangYaCaseEventConfigMap(activityId);
    }

    public static Map<Integer,Map<Integer, LangYaBangAreaConfig>> getLangYaBangAreaConfigMap(int activityId){
        return DaoHelper.getLangYaBangConfigDaoImpl().getLangYaBangAreaConfigMap(activityId);
    }

    public static Map<Integer, LangYaBangBuildingConfig> getLangYaBangBuildingConfigMap(int activityId){
        return DaoHelper.getLangYaBangConfigDaoImpl().getLangYaBangBuildingConfigMap(activityId);
    }

    public static Map<Integer, LangYaBangPveConfig> getLangYaBangPveConfigList(int activityId){
        return DaoHelper.getLangYaBangConfigDaoImpl().getLangYaBangPveConfigList(activityId);
    }

    public static Map<Integer,Map<Integer,LangYaRollDiceConfig>> getLangYaRollDiceConfigMap(int activityId){
        return DaoHelper.getLangYaBangConfigDaoImpl().getLangYaRollDiceConfigMap(activityId);
    }

    public static Map<String, LangYaUnionData> getLangYaUnionData(int activityId,int groupId){
        return DaoHelper.getLangYaBangUnionDataDaoImpl().getLangYaUnionData(activityId,groupId);
    }

    public static Map<Long, LangYaBangUserData> getLangYaUserData(int activityId,int groupId){
        return DaoHelper.getLangYaBangUserDataDaoImpl().getLangYaBangUserData(activityId,groupId);
    }

    public static boolean addLangYaUnionData(LangYaUnionData unionData){
        return DaoHelper.getLangYaBangUnionDataDaoImpl().add(unionData);
    }

    public static boolean updateLangYaUnionData(LangYaUnionData unionData){
        return DaoHelper.getLangYaBangUnionDataDaoImpl().update(unionData);
    }

    public static boolean addLangYaUserData(LangYaBangUserData unionData){
        return DaoHelper.getLangYaBangUserDataDaoImpl().add(unionData);
    }

    public static boolean updateLangYaUserData(LangYaBangUserData unionData){
        return DaoHelper.getLangYaBangUserDataDaoImpl().update(unionData);
    }

    public static LangYaUserCaseGameData getLangYaUserCaseGameData(int activityId,long userId){
        return DaoHelper.getLangYaBangUserCaseDataDaoImpl().getLangYaUserCaseGameData(activityId,userId);
    }

    public static boolean addLangYaUserCaseGameData (LangYaUserCaseGameData data){
        return DaoHelper.getLangYaBangUserCaseDataDaoImpl().add(data);
    }

    public static boolean updateLangYaUserCaseGameData(LangYaUserCaseGameData data){
        return DaoHelper.getLangYaBangUserCaseDataDaoImpl().update(data);
    }

    public static List<LangYaBangWarReportData> getLangYaBangWarReportData(int activityId, long userId,int limit){
        return DaoHelper.getLangYaWarReportDaoImpl().getLangYaBangWarReportData(activityId, userId,limit);
    }

    public static boolean addLangYaBangWarReportData (LangYaBangWarReportData data){
        return DaoHelper.getLangYaWarReportDaoImpl().add(data);
    }

    public static List<LangYaDeclareWarNoticeData> getLangYaDeclareWarNoticeData(int activityId, int groupId,int limit){
        return DaoHelper.getLangYaBangDeclareNoticeDaoImpl().getLangYaDeclareWarNoticeData(activityId,groupId,limit);
    }

    public static boolean addLangYaDeclareWarNoticeData(LangYaDeclareWarNoticeData langYaDeclareWarNoticeData){
        return DaoHelper.getLangYaBangDeclareNoticeDaoImpl().add(langYaDeclareWarNoticeData);
    }

    public static boolean updateLangYaDeclareWarNoticeData(LangYaDeclareWarNoticeData langYaDeclareWarNoticeData){
        return DaoHelper.getLangYaBangDeclareNoticeDaoImpl().update(langYaDeclareWarNoticeData);
    }



}
